package com.feinno.urcs.group.util;


import java.io.IOException;

/**
 * @author Li.Hongbo <lihongbo@feinno.com>
 */
public class MSRPTextMsgParser {
	public static String getMsrpMsgContent(MsrpContent content) throws IOException {
		switch (content.getContentTransferEncoding().trim().toLowerCase()) {
			case "base64":
				return MSRPTextMsgEncodingType.BASE64.getContent(content);
			default:
				return MSRPTextMsgEncodingType.DEFAULT.getContent(content);
		}
	}
}
